<div >
    <fly:include name="tabs" />
   <h1>Modification account password</h1>
    <p>
        Les informations marquées d'un * sont obligatoires.
    </p>
    <form method="post">
        <fieldset>             
            <fly:block name="old_password">
	            <div id="form-ligne">
					<div id="form-titre"><label for="apass_<fly:variable name='timestamp' />">Votre ancien mot de passe *</label></div>
					<div id="form-field">								
		                    <input AUTOCOMPLETE=OFF  alt="Password" class="pwd validated text" type="password" name="apass_<fly:variable name='timestamp' />" id="name="apass_<fly:variable name='timestamp' />"" size="30" maxlength="255" /><div id="apass_<fly:variable name='timestamp' />_img"></div><div id="apass_<fly:variable name='timestamp' />_msg"></div>
	        		</div>
	        	</div>
        	</fly:block>
        	<div id="form-ligne">
				<div id="form-titre"><label for="pass_<fly:variable name='timestamp' />">Votre nouveau mot de passe *</label></div>
				<div id="form-field">								
	                    <input  alt="Password" class="pwd validated oblig text" type="password" name="pass_<fly:variable name='timestamp' />" id="pass_<fly:variable name='timestamp' />" size="30" maxlength="255" /><div id="pass_<fly:variable name='timestamp' />_img"></div><div id="pass_<fly:variable name='timestamp' />_msg"></div>
        		</div>
        	</div>
			<div id="form-ligne">
				<div id="form-titre"><label for="cpass_<fly:variable name='timestamp' />">Confirmez le mot de passe *</label></div>
				<div id="form-field">								
	                    <input alt="Repeat pasword" class="validated oblig text" type="password" name="cpass_<fly:variable name='timestamp' />" id="cpass_<fly:variable name='timestamp' />" size="30" maxlength="255" /><div id="cpass_<fly:variable name='timestamp' />_img"></div><div id="cpass_<fly:variable name='timestamp' />_msg"></div>
        		</div>
        	</div>
			<div id="form-ligne">
				<div id="form-titre">&nbsp;</div>
				<div id="form-field">								
	                    <input type="submit" name="submit" value="Modifier mon mot de passe" class="submit" />
        		</div>
        	</div>
            
        </fieldset>
    </form>
</div>
<script type="text/javascript">
var validated=false;
var completed=false;
function complete(){
	var type;
	$('.img_info').each(function(){		
		file = $(this).attr('src');		
		type =  file.substring(file.lastIndexOf('/')+1,file.indexOf('.'));		
		if(type=='exclamation') return false;
	});
	//alert(type);
	if(type == 'exclamation')return false; else return true;	
}
function registerSubmit(){
	completed = complete();
	//alert(validated+' = '+completed);
	if(validated==true && completed==true){			
		return true;
	} else return false;
}
$(document).ready(function(){
		
	$("#cpass_<fly:variable name='timestamp' />").keyup(function() {  			
          $(this).match($("#pass_<fly:variable name='timestamp'/>"),$("#cpass_<fly:variable name='timestamp' />"));
  	});
  	$("cpass_<fly:variable name='timestamp' />").blur(function() {  			
          $(this).match($("#pass_<fly:variable name='timestamp'/>"),$("#cpass_<fly:variable name='timestamp' />"));
  	});
});
</script>